package guoanmaker.personal.business.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import guoanmaker.personal.business.model.PersonalCode;
/**
 * 
* @ClassName: PersonalCodeRepository 
* @Description: 验证码repository
* @author Yvonne_MGL
* @date 2017年7月6日 下午3:50:57 
*  
 */
public interface PersonalCodeRepository extends JpaRepository<PersonalCode, String>, JpaSpecificationExecutor<PersonalCode>{
	@Query("select c from PersonalCode c where c.telephone=:telephone")
	public List<PersonalCode> findCodeByTelephone(@Param("telephone")String telephone);
}
